import { request } from './request';

export async function getAllExperimentScore() {
  return request('/api/experimentScore', {
    method: 'GET',
  })
}

export async function appendExperimentScore(data: any) {
  return request('/api/experimentScore', {
    method: 'POST',
    data,
  })
}

export async function updateExperimentScore(data: any) {
  return request(`/api/experimentScore/${data?.sId}/${data?.ecId}`, {
    method: 'PUT',
    data,
  })
}

export async function destroyExperimentScore(data: any) {
  return request(`/api/experimentScore/${data?.sId}/${data?.ecId}`, {
    method: 'DELETE',
  })
}

export default {
  getAllExperimentScore,
  appendExperimentScore,
  updateExperimentScore,
  destroyExperimentScore,
};
